<html>
<head><meta charset="utf-8"><title>macos rpath · t-release · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/241545-t-release/index.html">t-release</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/241545-t-release/topic/macos.20rpath.html">macos rpath</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="204667094"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241545-t-release/topic/macos%20rpath/near/204667094" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/241545-t-release/topic/macos.20rpath.html#204667094">(Jul 22 2020 at 13:46)</a>:</h4>
<p><span class="user-mention" data-user-id="324021">@stevej</span> hey!</p>



<a name="204667211"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241545-t-release/topic/macos%20rpath/near/204667211" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> stevej <a href="https://rust-lang.github.io/zulip_archive/stream/241545-t-release/topic/macos.20rpath.html#204667211">(Jul 22 2020 at 13:47)</a>:</h4>
<p>Hi. by pulled into the toolchain I mean editing files which end up in rustc/libraries, rather than influencing how it's built</p>



<a name="204667426"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241545-t-release/topic/macos%20rpath/near/204667426" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/241545-t-release/topic/macos.20rpath.html#204667426">(Jul 22 2020 at 13:48)</a>:</h4>
<p>Not sure I'm following you. Changes to bootstrap here wouldn't affect things rustc builds, only the build of rustc itself (and std and tools)</p>



<a name="204667533"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241545-t-release/topic/macos%20rpath/near/204667533" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> stevej <a href="https://rust-lang.github.io/zulip_archive/stream/241545-t-release/topic/macos.20rpath.html#204667533">(Jul 22 2020 at 13:49)</a>:</h4>
<p>right, I'm brand new to rust, so I'm still figuring it out. You're saying bootstrap/ is only used to build the toolchain, which is great</p>



<a name="204667641"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241545-t-release/topic/macos%20rpath/near/204667641" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/241545-t-release/topic/macos.20rpath.html#204667641">(Jul 22 2020 at 13:50)</a>:</h4>
<p>yeah, think of it like fancy makefiles</p>



<a name="204667717"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241545-t-release/topic/macos%20rpath/near/204667717" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> stevej <a href="https://rust-lang.github.io/zulip_archive/stream/241545-t-release/topic/macos.20rpath.html#204667717">(Jul 22 2020 at 13:50)</a>:</h4>
<p>you're suggesting I add new lines after 110, which I will try shortly, but does it address how some of the dylibs have different characteristics?</p>



<a name="204667817"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241545-t-release/topic/macos%20rpath/near/204667817" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> stevej <a href="https://rust-lang.github.io/zulip_archive/stream/241545-t-release/topic/macos.20rpath.html#204667817">(Jul 22 2020 at 13:51)</a>:</h4>
<p>I worried each library had a different set of instructions, and I had to edit them all</p>



<a name="204667915"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241545-t-release/topic/macos%20rpath/near/204667915" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/241545-t-release/topic/macos.20rpath.html#204667915">(Jul 22 2020 at 13:52)</a>:</h4>
<p>yeah so right now the logic here <a href="https://github.com/rust-lang/rust/blob/e22b61bff0bdd08be7665607cb7be3748c8a35d2/src/bootstrap/builder.rs#L999-L1016">https://github.com/rust-lang/rust/blob/e22b61bff0bdd08be7665607cb7be3748c8a35d2/src/bootstrap/builder.rs#L999-L1016</a> applies only to things that are directly linked to rustc, i.e., dynamic libraries loaded at "startup" so to speak</p>



<a name="204668032"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241545-t-release/topic/macos%20rpath/near/204668032" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/241545-t-release/topic/macos.20rpath.html#204668032">(Jul 22 2020 at 13:52)</a>:</h4>
<p>whereas the line 110 section in src/bootstrap/bin/rustc.rs is for proc macros (which are in this case libchalk_derive, tracing, and whatever the third one was)</p>



<a name="204668095"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241545-t-release/topic/macos%20rpath/near/204668095" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/241545-t-release/topic/macos.20rpath.html#204668095">(Jul 22 2020 at 13:53)</a>:</h4>
<p>the discrepancy in when and how they're loaded is also why I personally am not sure you actually need this</p>



<a name="204668250"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241545-t-release/topic/macos%20rpath/near/204668250" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> stevej <a href="https://rust-lang.github.io/zulip_archive/stream/241545-t-release/topic/macos.20rpath.html#204668250">(Jul 22 2020 at 13:54)</a>:</h4>
<p>like I said, I also need to set other flags, the rpath was just what stuck out immediately as "incorrect"</p>



<a name="204668401"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241545-t-release/topic/macos%20rpath/near/204668401" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/241545-t-release/topic/macos.20rpath.html#204668401">(Jul 22 2020 at 13:55)</a>:</h4>
<p>yeah I think the lack of rpath is not incorrect there as it won't be used but <span aria-label="shrug" class="emoji emoji-1f937" role="img" title="shrug">:shrug:</span></p>



<a name="204728751"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/241545-t-release/topic/macos%20rpath/near/204728751" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> stevej <a href="https://rust-lang.github.io/zulip_archive/stream/241545-t-release/topic/macos.20rpath.html#204728751">(Jul 22 2020 at 22:13)</a>:</h4>
<p><span class="user-mention" data-user-id="116122">@simulacrum</span> thanks again for your help. I've redacted a lot, but the rest is at <a href="https://pastebin.com/B5JSWbjp">https://pastebin.com/B5JSWbjp</a> for reference</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>